<%-- 
    Document   : FbPageInfo
    Created on : Nov 19, 2013, 2:57:38 PM
    Author     : Liem
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>


<jsp:include page="header.jsp"/>
<jsp:include page="leftbar.jsp"/>
<c:set var="xml" value="${sessionScope.FB}"/>
<c:set var="pagename" value="${param.pagename}"/>
<x:parse doc="${xml}" var="doc"/>
<div class="main-wrapper">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="primary-head">
                <h3 class="page-header">Your facebook's page info</h3>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span6">
                <h4><c:out value="${pagename}"/></h4>
            </div>
            <div class="span6">
                <div class="pull-right">
                    <form action="printFbInfo.action" method="post">
                        <button class="btn btn-info" type="submit">
                            <i class="icon-print"></i>
                            Print
                        </button>
                    </form>
                </div>
            </div>
        </div>

        <c:import url="WEB-INF/xsl/displayFbInfo.xsl" var="xsl"/>
        <x:transform xml="${doc}" xslt="${xsl}"></x:transform>
    </div>
</div>

<jsp:include page="footer.jsp"/>